package demo.api.service;

import org.apache.dubbo.common.URL;
import org.apache.dubbo.common.extension.Adaptive;
import org.apache.dubbo.common.extension.SPI;

/**
 * @author m0v1
 * @date 2021年09月22日 8:33 下午
 */
@SPI("dog")// value属性用于指定默认实现类对应的key值
public interface SayHelloService {

    String sayHello(String name);

    @Adaptive
    String sayWithURL(URL url);

    @Adaptive
    void defaultSayWithURL(URL url);
}
